package git.soulbgm.common.mapper;

import org.apache.ibatis.annotations.InsertProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * Oracle批量插入
 *
 * @author SoulBGM
 * @version 1.0
 * @date 2019/7/31 13:40
 */
@RegisterMapper
public interface OracleInsertListMapper<T> {

    /**
     * Oracle 的批量插入
     *
     * @param var1
     * @return
     */
    @InsertProvider(
            type = git.soulbgm.common.mapper.OracleProvider.class,
            method = "dynamicSQL"
    )
    int insertList(List<? extends T> var1);
}